package com.cxy.datawarehouse.entity;

import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import io.swagger.annotations.ApiModel;
import lombok.Data;
import org.hibernate.annotations.DynamicInsert;
import org.hibernate.annotations.DynamicUpdate;

import javax.persistence.*;
import java.io.Serializable;

@Data
@Entity
@ApiModel("标准代码明细表")
@Table(name = "t_standard_code_detail")
@DynamicInsert
@DynamicUpdate
public class StandardCodeDetail implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 主键 具体代码编号
     */
    @Id
    @ApiModelProperty("具体代码编号")
    @Column(name = "detail_code_id", nullable = false)
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long detailCodeId;

    /**
     * 标准代码编号
     */
    @ApiModelProperty("标准代码编号")
    @Column(name = "standard_code_id", nullable = false)
    private Long standardCodeId;

    /**
     * 具体名称
     */
    @ApiModelProperty("具体名称")
    @Column(name = "detail_name", nullable = false)
    private String detailName;

    /**
     * 简称
     */
    @ApiModelProperty("简称")
    @Column(name = "easy_name", nullable = false)
    private String easyName;

    /**
     * 代码信息
     */
    @ApiModelProperty("代码信息")
    @Column(name = "code_info", nullable = false)
    private String codeInfo;
}
